package uk.org.aspellclark.gedcom.model.structures;

/** <pre>ADDRESS_STRUCTURE:=
    n ADDR &lt;ADDRESS_LINE> {1:1} p.41
        +1 CONT &lt;ADDRESS_LINE> {0:3} p.41
        +1 ADR1 &lt;ADDRESS_LINE1> {0:1} p.41
        +1 ADR2 &lt;ADDRESS_LINE2> {0:1} p.41
        +1 ADR3 &lt;ADDRESS_LINE3> {0:1} p.41
        +1 CITY &lt;ADDRESS_CITY> {0:1} p.41
        +1 STAE &lt;ADDRESS_STATE> {0:1} p.42
        +1 POST &lt;ADDRESS_POSTAL_CODE> {0:1} p.41
        +1 CTRY &lt;ADDRESS_COUNTRY> {0:1} p.41
    n PHON &lt;PHONE_NUMBER> {0:3} p.57
    n EMAIL &lt;ADDRESS_EMAIL> {0:3} p.41
    n FAX &lt;ADDRESS_FAX> {0:3} p.41
    n WWW &lt;ADDRESS_WEB_PAGE> {0:3}</pre>

    The address structure should be formed as it would appear on a mailing label using the ADDR and
the CONT lines to form the address structure. The ADDR and CONT lines are required for any
address. The additional subordinate address tags such as STAE and CTRY are provided to be used
by systems that have structured their addresses for indexing and sorting. For backward compatibility
these lines are not to be used in lieu of the required ADDR.and CONT line structure.
 */
public class AddressStructure extends GedcomStructure {

	public String addressLine;
	public String addr1;
	public String addr2;
	public String addr3;
	public String city;
	public String stateProvince;
	public String postalCode;
	public String country;
	public String phone;
	public String email;
	public String fax;
	public String www;

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.addressLine + ", " + this.addr1 + ", " + this.addr2 + ", " + this.addr3 + ", " + this.city + ", "
				+ this.stateProvince + ", " + this.postalCode + ", " + this.country;
	}

}
